<?php
 session_start();
 $email = $_POST['l_email'];
 $temp_pass = $_POST['l_password'];
 

if ($email == "" || $temp_pass=="")
{
	echo 'blank_email_password'; // for blank email address
	exit;
}
 else if (preg_match("/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/", $email)) 
{
	if ($email == "admin@admin.com" && $temp_pass=="password")
	{
		 $_SESSION['email']=$email;
		 $_SESSION['type']="admin";
		 
		 echo "true";
	}
} 
else 
{
    echo 'invalid_email';
	exit;
}

?>